package com.jiazhong.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

//@WebListener
public class 上下文对象创建销毁监听 implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent e) {
        System.out.println("创建了application对象");
    }

    @Override
    public void contextDestroyed(ServletContextEvent e) {
        System.out.println("销毁了application对象");
    }
}
